<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>详细</title>

</head>
<body>


	<div class="container-fluid">
		<div class="modal-header">
			<button type="button" class="close" data-ng-click="Model.cancel()" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h5>{{Model.title}}</h5>
		</div>
		<div class="modal-body">

			<div class="container-fluid" style="padding: 0px;">
				<form class="form-horizontal" name="inventory_fileItem_single_form">
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">物料编码</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" ng-readonly="true" data-ng-model="currentItem.itemNo" placeHolder="为空则系统会自动编码" name="itemNo">
								</div>
							</div>
						</div>
						<div class="col-sm-8">
							<div class="form-group form-group-sm has-warning">
								<label for="inventory_fileItem_single_form_itemName"
									class="col-sm-2 control-label">名称</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" ng-readonly="true" data-ng-model="currentItem.itemName" id="inventory_fileItem_single_form_itemName" name="itemName" >
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm has-warning">
								<label for="inventory_fileItem_single_form_classFullLabel" class="col-sm-4 control-label">物料分类</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"  ng-readonly="true" data-ng-model="currentItem.classFullLabel" id="inventory_fileItem_single_form_classFullLabel" name="classFullLabel">
								</div>
							</div>
						</div>
						<div class="col-sm-8">
							<div class="form-group form-group-sm has-warning">
								<label for="inventory_fileItem_single_form_itemProperty" class="col-sm-2 control-label">规格型号</label>
								<div class="col-sm-10">
									<input type="text" class="form-control"  ng-readonly="true" data-ng-model="currentItem.itemProperty" id="inventory_fileItem_single_form_itemProperty" name="itemProperty">
								</div>
							</div>
						</div>
					</div>
					<hr>
					
					<div class="view">
						<!-- 子表按钮菜单 -->
						<div class="row">
							<div class="col-sm-12">

								<nav class="nav">
									<ul class="pagination navbar-left buttonBar">
										<li>
											<div class="btn-group" role="toolbar">
												<button type="button" class="btn btn-default " title="获取特征属性"
													data-ng-disabled="Model.dataMaster.readonly()"
													data-ng-click="Model.addrows()">
													<span class="glyphicon glyphicon-plus"></span> 获取特征属性
												</button>
												<button type="button" class="btn btn-default " title="清空特征属性"
													data-ng-disabled="Model.dataMaster.readonly()"
													data-ng-click="Model.clearrows()">
													<span class="glyphicon glyphicon-minus"></span> 清空特征属性
												</button>
												<button type="button" class="btn btn-default " title="发布特征值"
													data-ng-disabled="Model.dataMaster.readonly()"
													ng-show="currentItem.configType==0"
													data-ng-click="Model.updateProperValues()">
													<span class="glyphicon glyphicon-send"></span> 发布特征值
												</button>

											</div>
										</li>
									</ul>
								</nav>

							</div>
						</div>

						<!-- 子表 -->
						<div class="row">
							<div class="col-sm-12">

							<div class="table-responsive">
								<table class="table table-hover table-condensed" data-readonly={{Model.dataMaster.readonly()}} style="cellpadding: 0px; cellspacing: 0px;">
									<thead>
										<tr>
											<th colspan="99"  style="padding:0px;">
											</th>
										</tr>

										<tr>
											<th>#</th>
											<th>特征</th>
											<th>特征描述</th>
											<th>特征值</th>
											<th>特征值描述</th>
										</tr>
									</thead>
									<tbody>
										<tr data-ng-class="{true:'active'}[Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)]"
											data-ng-click="Model.dataMaster.onRowClick(row,$event)"
											data-ng-repeat="row in Model.dataMaster.rows">
											
											<td style="width: 10px;">
												<span data-ng-show="Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)" class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
												<span data-ng-show="Model.dataMaster.currentIndex!=Model.dataMaster.rows.indexOf(row)">{{Model.dataMaster.rows.indexOf(row)+1}}</span>
											</td>

											<td style="width: 50px;" td-input="ro"
												data-ng-model="row.properEntry.value"><span
												data-ng-bind="row.properEntry.value"></span></td>
											<td style="width: 200px;" td-input="ro"
												data-ng-model="row.pentryLabel.value"><span
												data-ng-bind="row.pentryLabel.value"></span></td>
											<td style="width: 50px;" td-input="ro"
												data-ng-model="row.properValue.value"><span
												data-ng-bind="row.properValue.value"></span></td>
											<td style="width: 200px;" td-input="outputbtn"
												iptclick="Model.properValueClick()"
												data-ng-model="row.pvalueLabel.value"><span
												data-ng-bind="row.pvalueLabel.value"></span></td>

										</tr>

									</tbody>
									<tfoot>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>
									
									</tfoot>

								</table>
								
							</div>


							</div>
						</div>
					</div>
					

				</form>
			

			</div>

			<pre hidden="true">
			[inventory_fileItem_single_form.systemCode.$dirty]:{{inventory_fileItem_single_form.systemCode.$dirty}}
			[inventory_fileItem_single_form.systemCode.$valid]:{{inventory_fileItem_single_form.systemCode.$valid}}
			[inventory_fileItem_single_form.systemCode.$error]:{{inventory_fileItem_single_form.systemCode.$error}}
			</pre>


		</div>
		<!-- modal-body结束 -->

		<div class="modal-footer">
			<button class="btn btn-primary"	data-ng-click="Model.ok()"
				data-ng-disabled="inventory_fileItem_single_form.orderDate.$dirty && inventory_fileItem_single_form.orderDate.$invalid 
			|| inventory_fileItem_single_form.orderDate.$error.required 
			|| inventory_fileItem_single_form.itemName.$dirty && inventory_fileItem_single_form.itemName.$invalid 
			|| inventory_fileItem_single_form.itemName.$error.required 
			|| inventory_fileItem_single_form.unitName.$dirty && inventory_fileItem_single_form.unitName.$invalid 
			|| inventory_fileItem_single_form.unitName.$error.required 
			|| inventory_fileItem_single_form_storage.floorNo.$dirty && inventory_fileItem_single_form_storage.floorNo.$invalid 
			|| inventory_fileItem_single_form_storage.floorNo.$error.required 
			"
			>确定</button>
			<button class="btn btn-warning" data-ng-click="Model.cancel()">取消</button>
		</div>

	</div>




</body>
</html>